$(function(){
  let $pwd = $('.pwd'),
      $eye = $('.eye'),
      $text = $('.text');

  $pwd.on('input',()=>{
    $text.val($pwd.val());
  });

  $eye.mouseover(()=>{
    $text.css("z-index","10");
  });
  $eye.mouseout(()=>{
    $text.css("z-index","-10");
  });
});
